package com.heeexy.example.controller;
import com.alibaba.fastjson.JSONObject;
import com.heeexy.example.service.ListDateService;
import com.heeexy.example.util.CommonUtil;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;
@RestController
@RequestMapping("/listDate")
public class ListDateController {
    @Autowired
    private ListDateService listdateService;

    @GetMapping("/listDate")
    public JSONObject listDate(HttpServletRequest request) {
        return  listdateService.listDate(CommonUtil.request2Json(request));
//		return goodsService.listArticle(CommonUtil.request2Json(request));
    }
}
